import time
def ce_shi(func):
    def metric():
        start_time = time.time()
        func()
        end_time = time.time()
        print('耗时：%f'%(end_time - start_time))
        print(func.__name__)
    return metric

@ce_shi
def run():
    time.sleep(1)
run()
